import { _decorator, Component, instantiate, Node, Prefab } from 'cc';
const { ccclass, property } = _decorator;

@ccclass('heartfire')
export class heartfire extends Component {
    @property(Prefab) fire1:Prefab
    start() {

    }
    die()
    {
        this.node.children[0].destroy();
        const fire = instantiate(this.fire1)
        this.node.addChild(fire)
    }
    update(deltaTime: number) {
        
    }
}


